﻿@using Commonality.ReturnView
@using ModelToDto
@using Commonality
@model List<MenueDTO>

<link rel="stylesheet" href="/table-expandable/css/bootstrap-table-expandable.css">
@{
    ViewData["Title"] = "层级菜单";
}
<h1>层级菜单</h1>
@using (Html.BeginForm("Index", "Menue", FormMethod.Get, new { @class = "row g-3" }))
{
    <p></p>
    <div class="row">
        <label class="col-sm-1 col-form-label">角色关键字</label>
        <div class="col-sm-2">
            @Html.TextBox("searchName", "searchName", new { @class = "form-control", @placeholder = "关键字" })
        </div>
        <div class="col-sm-1">
            <button type="submit" class="btn btn-primary mb-3">查询</button>
        </div>
        <div class="col-sm-3">
            <a href="/Menue/Add">新增一级菜单</a>
        </div>
    </div>
    <div class="mb-3 row" id="partialajaxlist" style="width:100%">
        <div class="div-table">
            @await Html.PartialAsync("ParMenueList", Model)
        </div>
       @*  <Paging total="@Model.RecordCount"
                page-index="@Model.PageIndex"
                page-size="@Model.PageSize"
                route-url="/Menue/Index"
                query="">
        </Paging> *@
    </div>
}

@section scripts {
    <script src="/table-expandable/js/bootstrap-table-expandable.js"></script>
}


